package org.feng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.feng.client.BaseDict;
import org.feng.enums.CustomDictStatusEnum;

import java.time.LocalDateTime;

/**
 * 自定义数据字典实体
 *
 * @author feng
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("custom_dict")
public class CustomDict implements BaseDict<Long> {
    private static final long serialVersionUID = 7961526564347009290L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long parentId;
    private String name;
    private String dictKey;
    private String dictVal;
    private Integer weight;
    private CustomDictStatusEnum status;
    private String createUser;
    private String createUsername;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
